package com.ruoyi.quartz.domain;

import com.alibaba.fastjson2.JSONArray;
import lombok.Data;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

import java.util.List;

/**
 * 营收接口响应实体类
 *
 * @author TsingYu
 * @version 1.0
 * @date 2025/4/8 11:36
 */
@Data
public class ResponseArray<T> {

    private String requestId;

    private String httpCode;

    private String code;

    private String message;

    private Integer totalCount;

    private JSONArray data;

    @RequiredArgsConstructor
    @Getter
    public enum ResponseCode {
        /**
         * 查询正常
         */
        OK("Success", "查询正常"),
        /**
         * 无效的参数
         */
        Paramater_Invalid("Invalid.Paramater", "无效的参数"),
        /**
         * 缺少参数
         */
        Parameter_Missing("Missing.Parameter", "缺少参数"),
        /**
         * 服务内部错误
         */
        SERVER_ERR("Internal. Error", "服务内部错误");


        /**
         * 状态码
         */
        private final String code;

        /**
         * 状态含义
         */
        private final String meaning;
    }
}
